import React, { Component } from "react";
import { withRouter } from "../../router/hooks";
import "./button.less";

class Button extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    const { slot } = this.props;
    return (
      <div className="button">
        <div className="button_content">{slot}</div>
      </div>
    );
  }
}

export default withRouter(Button);
